package com.dudu.bean;

/**
 * 通道日报表实体类
 * @author jack
 *
 */
public class ReportDailyAbilityBean implements Comparable<Object>{
	
	private String abilityName=""; 	 //通道商名称
	private String productName=""; 	 //产品名称
	private String requestCount="";  //请求次数
	private String totalTime=""; 	 //消耗量
	private String unit="";          //单位
	
	public String getAbilityName() {
		return abilityName;
	}
	public void setAbilityName(String abilityName) {
		this.abilityName = abilityName;
	}
	public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public String getRequestCount() {
		return requestCount;
	}
	public void setRequestCount(String requestCount) {
		this.requestCount = requestCount;
	}
	public String getTotalTime() {
		return totalTime;
	}
	public void setTotalTime(String totalTime) {
		this.totalTime = totalTime;
	}
	public String getUnit() {
		return unit;
	}
	public void setUnit(String unit) {
		this.unit = unit;
	}
	
	@Override
	public int compareTo(Object o){
		ReportDailyAbilityBean bean = (ReportDailyAbilityBean)o;
		  // 按abilityName排序
        if (this.abilityName.compareTo(bean.getAbilityName()) > 0) {
            return 1;
        }
        if (this.abilityName.compareTo(bean.getAbilityName()) < 0) {
            return -1;
        }
        return 0;
	}
}
